
<!-- TOPBAR -->
<header class="top-bar flex-row">
  <a class="row-item row-item-auto top-bar-back" href="javascript:window.history.go(-1)">返回</a>
  <h3 class="row-item top-bar-name">订单列表</h3>
  <a class="row-item row-item-auto top-bar-menu" href="javascript:location.reload()">刷新</a>
</header>

<empty name="orderLists">

<!-- 没有订单的情况 -->
<div class="pr-empty-cart">
  <p class="pr-cart-icon"><i class="iconfont">&#xe605;</i></p>
  <p class="pr-empty-message">您没有订单T_T</p>
  <a class="pr-empty-button" href="{$config.url}">去分享</a>
</div>

<else/>

<!-- 有订单的情况 -->
<section class="order-list">
  <div class="lists">
    <volist name="orderLists" id="vo">
    <a class="lists-item lists-item-link" href="javascript:void(0)">
      <h5 class="order-list-title ellipsis">用户名称：{$vo['nickname']?$vo['nickname']:'游客'}（级别:{$vo.level}）</h5>
      <h5 class="order-list-title ellipsis">订单编号：{$vo.order_id}</h5>
      <p>订单日期：{$vo.create_time|date="Y-m-d H:i:s",###}</p>
      <p>订单价格：{$vo.goods_amount}元</p>
      <p>奖励积分：+{$vo.my_rewards}({$vo.reward_name})</p>
    </a>
    </volist>  
  </div>
</section>
</empty>